export const basicRoutes = [
  {
    path: '/',
    redirect: '/education'
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/views/home'),
    meta: {
      title: '宣教助手',
      isShowBar: true
    }
  },

  {
    path: '/education',
    name: 'Education',
    component: () => import('@/views/education'),
    meta: {
      title: '宣教中心',
      isShowBar: true
    }
  },
  {
    path: '/user',
    name: 'User',
    component: () => import('@/views/user'),
    meta: {
      title: '宣教助手',
      isShowBar: true
    }
  },
  {
    path: '/course',
    name: 'Course',
    component: () => import('@/views/course'),
    meta: {
      title: '专家课堂',
      isShowBar: true
    }
  },
  {
    path: '/user/info',
    name: 'UserInfo',
    component: () => import('@/views/user/info'),
    meta: {
      title: '个人信息'
    }
  },
  {
    path: '/bed',
    name: 'Bed',
    component: () => import('@/views/bed'),
    meta: {
      title: '宣教助手',
      hiddenBack: true
    }
  },
  {
    path: '/notice',
    name: 'Notice',
    component: () => import('@/views/notice'),
    meta: {
      title: '患者告知书',
      hiddenBack: true
    }
  },
  {
    path: '/patient-info',
    name: 'PatientInfo',
    component: () => import('@/views/patient-info'),
    meta: {
      title: '宣教助手',
      hiddenBack: true
    }
  },
  {
    path: '/search',
    name: 'Search',
    component: () => import('@/views/search'),
    meta: {
      title: '搜索'
    }
  },
  {
    path: '/classify/:categoryId',
    name: 'Classify',
    component: () => import('@/views/classify'),
    meta: {
      title: '分类'
    }
  },
  {
    path: '/choose-dept',
    name: 'ChooseDept',
    component: () => import('@/views/search/dept'),
    meta: {
      title: '科室选择'
    }
  },
  {
    path: '/article',
    name: 'Article',
    component: () => import('@/views/article'),
    meta: {
      title: '文章列表',
      keep: true
    }
  },
  {
    path: '/article/:articleId',
    name: 'ArticleDetail',
    component: () => import('@/views/article/detail'),
    meta: {
      title: '文章详情'
      // hiddenBack: true
    }
  },
  {
    path: '/trainArticle/:articleId',
    name: 'trainArticleDetail',
    component: () => import('@/views/article/trainDetail'),
    meta: {
      title: '培训文章详情'
      // hiddenBack: true
    }
  },
  {
    path: '/article/preview',
    name: 'ArticleDetailPreview',
    component: () => import('@/views/article/preview'),
    meta: {
      title: '文章'
    }
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/login'),
    meta: {
      title: 'title'
    }
  },
  {
    path: '/quantity',
    name: 'Quantity',
    component: () => import('@/views/quantity'),
    meta: {
      title: '患者出入量统计'
    }
  },
  {
    path: '/intake',
    name: 'Intake',
    component: () => import('@/views/intake'),
    meta: {
      title: '患者出入量统计'
    }
  },
  {
    path: '/consult',
    name: 'Consult',
    component: () => import('@/views/consult'),
    meta: {
      title: '我的咨询'
    }
  },
  {
    path: '/message',
    name: 'Message',
    component: () => import('@/views/message'),
    meta: {
      title: '我的消息'
    }
  },

  {
    path: '/drugs',
    name: 'Drugs',
    component: () => import('@/views/drugs'),
    meta: {
      title: '药品不良反应报告'
    }
  },
  {
    path: '/group',
    name: 'Group',
    component: () => import('@/views/group'),
    meta: {
      title: '康复社群'
    }
  },
  {
    path: '/community',
    name: 'Community',
    component: () => import('@/views/community'),
    meta: {
      title: '社群详情'
    }
  },
  {
    path: '/follow',
    name: 'Follow',
    component: () => import('@/views/follow'),
    meta: {
      title: '宣教中心'
    }
  },
  {
    path: '/no-login',
    name: 'NoLogin',
    component: () => import('@/views/no-login'),
    meta: {
      title: '提示',
      hiddenBack: true
    }
  },
  {
    path: '/:w+',
    name: '*',
    redirect: '/no-login'
  }
];
